package com.laicunba.pojo.vo;

import java.math.BigDecimal;
import java.util.Date;

import com.laicunba.pojo.CashCouponDO;

public class CashCouponVO extends CashCouponDO {
	
	private String mobile;
	
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public boolean isExpired() {
		if (getUsedAmount() != null && getUsedAmount().compareTo(BigDecimal.ZERO) > 0) {
			return false;
		}
		Date now = new Date();
		return now.before(getBeginTime()) || now.after(getEndTime());
	}
}
